
enum Code
{
    USAGE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    RECVFROM_ERR,
    SENDTO_ERR,
    LISTEN_ERR,
    CONNECT_ERR,
    ACCEPT_ERR,
    INET_NTOP,
    INET_PTON,
    READ_ERR,
    WRITE_ERR
};

#define CONV(addr) ((struct sockaddr*)&addr)